package com.yanqu.road.entity.activity.pawnshop;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

/**
 * 玩家的当铺弹窗通知
 * 
 * @author sjh
 *
 */
@FieldTypeAnnotation(tableName = "t_u_activity_pawnshop_notify")
public class UserPawnshopNotify extends DataObject {

	@FieldTypeAnnotation(select = true, update = true, desc = "用户ID")
	private long userId;

	@FieldTypeAnnotation(select = true, update = true, desc = "活动ID")
	private int activityId;

	@FieldTypeAnnotation(update = true, desc = "通知ID=触发时的时间戳")
	private long notifyId;

	@FieldTypeAnnotation(desc = "是否已读")
	private boolean isRead;

	@FieldTypeAnnotation(desc = "类型：1修复完成，2伪造完成，3典当赎回，4典当放弃")
	private int type;

	@FieldTypeAnnotation(desc = "货物ID，即配表编号")
	private long itemId;

	@FieldTypeAnnotation(desc = "旧的估价")
	private long coinValuationOld;

	@FieldTypeAnnotation(desc = "旧的状态")
	private int statusOld;

	@FieldTypeAnnotation(desc = "赎金=当款+利息")
	private long redemptionPrice;

	private UserPawnshopItem userPawnshopItem;

	// ========================================================================
	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		if (this.userId != userId) {
			this.userId = userId;
			setUpdateOption();
		}
	}

	public int getActivityId() {
		return activityId;
	}
	public void setActivityId(int activityId) {
		if (this.activityId != activityId) {
			this.activityId = activityId;
			setUpdateOption();
		}
	}

	public long getNotifyId() {
		return notifyId;
	}
	public void setNotifyId(long notifyId) {
		if (this.notifyId != notifyId) {
			this.notifyId = notifyId;
			setUpdateOption();
		}
	}

	public boolean getIsRead() {
		return isRead;
	}
	public void setIsRead(boolean isRead) {
		if (this.isRead != isRead) {
			this.isRead = isRead;
			setUpdateOption();
		}
	}

	public int getType() {
		return type;
	}
	public void setType(int type) {
		if (this.type != type) {
			this.type = type;
			setUpdateOption();
		}
	}

	public long getItemId() {
		return itemId;
	}
	public void setItemId(long itemId) {
		if (this.itemId != itemId) {
			this.itemId = itemId;
			setUpdateOption();
		}
	}

	public long getCoinValuationOld() {
		return coinValuationOld;
	}
	public void setCoinValuationOld(long coinValuationOld) {
		if (this.coinValuationOld != coinValuationOld) {
			this.coinValuationOld = coinValuationOld;
			setUpdateOption();
		}
	}

	public int getStatusOld() {
		return statusOld;
	}
	public void setStatusOld(int statusOld) {
		if (this.statusOld != statusOld) {
			this.statusOld = statusOld;
			setUpdateOption();
		}
	}

	public long getRedemptionPrice() {
		return redemptionPrice;
	}
	public void setRedemptionPrice(long redemptionPrice) {
		if (this.redemptionPrice != redemptionPrice) {
			this.redemptionPrice = redemptionPrice;
			setUpdateOption();
		}
	}

	public UserPawnshopItem getUserPawnshopItem() {
		return userPawnshopItem;
	}

	public void setUserPawnshopItem(UserPawnshopItem userPawnshopItem) {
		this.userPawnshopItem = userPawnshopItem;
	}
}
